import axios from 'axios'
axios.defaults.withCredentials=true
axios.defaults.baseURL = 'http://localhost:7758'

let config = {
    "headers": {
        "Content-Type": "text/plain"
    }
}
axios.textConfig = config

axios.interceptors.request.use((config) => {
    return config;
})

axios.interceptors.response.use((resp => {
    return resp.data
}))

export default axios